package com.erlang4j.api.exceptions;

import java.util.Collection;

import com.erlang4j.internal.exceptions.Erlang4jException;
import com.erlang4j.internal.exceptions.Erlang4jExceptionConstants;

/**
 * <p>
 * This says that you have tried to get an item out of a binding using a key that wasn't allowed
 * </p>
 * 
 * @author Phil Rice
 */
public class Erlang4jKeyNotFoundException extends Erlang4jException {

	public Erlang4jKeyNotFoundException(String key, Collection<String> legalValues) {
		super(Erlang4jExceptionConstants.keyNotFoundExceptionKey, key, legalValues);
	}

}
